#pragma once


// CSimpleGridList

#define EMPTY_LINE_CONTENT _T("*")

class CSimpleGridList : public CListCtrl
{
	DECLARE_DYNAMIC(CSimpleGridList)

public:
	CSimpleGridList();
	virtual ~CSimpleGridList();

	BOOL CreateControl(const RECT &rect,CWnd *parent,UINT id);

	void PostCurrentEditorData();

protected:
	DECLARE_MESSAGE_MAP()

private:
	void ProcessNewLien(LVHITTESTINFO &info);

	bool RowIsEmpty(int rowNumber);

	CEdit m_innerEdit;

	int m_currentRow;

	int m_currentCol;
public:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
};


